package com.sip.stream.gbstack;

public class GS28181SDKStatus {
    private boolean isRegisted = true;
    private boolean isLinking = true;
    private boolean isRemoteVideo = false;
    private boolean isRemoteAudio = false;
    private boolean inviteVoiceTalk = false;
    private boolean isRecord = false;
    private boolean isOnline = true;
    private boolean isStatusOK = true;
    private String errReason = "";
    private double longitude = 0.0d;
    private double latitude = 0.0d;
    private int status = 1;
    private boolean muteAudio = false;

    public double getLongitude() {
        return this.longitude;
    }

    public double getLatitude() {
        return this.latitude;
    }

    public void setLatitudeLongitude(double latitude, double longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
    }

    public boolean isEncode() {
        return this.isRemoteAudio || this.isRecord;
    }

    public boolean isRecord() {
        return this.isRecord;
    }

    public void setRecord(boolean isRecord) {
        this.isRecord = isRecord;
    }

    public boolean isOnline() {
        return this.isOnline;
    }

    public void setOnline(boolean isOnline) {
        this.isOnline = isOnline;
    }

    public boolean isStatusOK() {
        return this.isStatusOK;
    }

    public void setStatusOK(boolean isStatusOK, String errReason) {
        this.isStatusOK = isStatusOK;
        if (errReason == null) {
            this.errReason = "";
        } else {
            this.errReason = errReason;
        }
    }

    public String getErrReason() {
        return this.errReason;
    }

    public int getStatus() {
        return this.status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public boolean isRegisted() {
        return this.isRegisted;
    }

    public void setRegisted(boolean isRegisted) {
        this.isRegisted = isRegisted;
    }

    public boolean isLinking() {
        return this.isLinking;
    }

    public void setLinking(boolean isLinking) {
        this.isLinking = isLinking;
    }

    public boolean isRemoteVideo() {
        return this.isRemoteVideo;
    }

    public void setRemoteVideo(boolean isRemoteAudio) {
        if (isRemoteAudio) {
            this.muteAudio = false;
        }
        this.isRemoteVideo = isRemoteAudio;
    }

    public boolean isRemoteAudio() {
        return this.isRemoteAudio;
    }

    public void setRemoteAudio(boolean isRemoteAudio) {
        if (isRemoteAudio) {
            this.muteAudio = false;
        }
        this.isRemoteAudio = isRemoteAudio;
    }

    public boolean isInviteVoiceTalk() {
        return this.inviteVoiceTalk;
    }

    public void setInviteVoiceTalk(boolean inviteVoiceTalk) {
        this.inviteVoiceTalk = inviteVoiceTalk;
    }

    public boolean isMuteAudio() {
        return this.muteAudio;
    }

    public void setMuteAudio(boolean muteAudio) {
        this.muteAudio = muteAudio;
    }
}
